package com.kelaite.procurement.service;

import java.util.List;

import com.kelaite.procurement.dto.PipelineItemDTO;
import com.kelaite.procurement.entity.TCompany;
import com.kelaite.procurement.entity.TDemand;
import com.kelaite.procurement.entity.TPipelineItem;

public interface PipelineItemService {
	public TPipelineItem save(TPipelineItem persistence);

	public void deleteByPrimaryKey(Long id);
	
	public void deleteByObject(TPipelineItem persistence);

	public TPipelineItem getObject(Long id);
	
	public List<TPipelineItem> getAll();

	public List<TPipelineItem> getByProperty(String property, Object value);
	
	public  PipelineItemDTO getPipelineItemByHeaderId(Long pipelineId);
	
	public List<TPipelineItem> findByCompany(TCompany[] companyObjects);
	
	public List<TPipelineItem> findByCompanyAndDemand(TCompany company, TDemand demand);
	
}
